#!/bin/bash
WORK_PATH=$(cd "$(dirname "$0")";pwd)
APP_NAME=$WORK_PATH/@appJarName@

JVM_PARAM='-server -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Dfile.encoding=utf-8'
if [ -n "$acp_jvm_param" ]; then
  JVM_PARAM="$JVM_PARAM $acp_jvm_param"
fi

cd $WORK_PATH

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WORK_PATH/libs
$JAVA_HOME/bin/java $JVM_PARAM -jar $APP_NAME